//
//  NSUserDefaults+MyDefaults.m
//  天使配送
//
//  Created by qlwl on 16/9/9.
//  Copyright © 2016年 qlwl. All rights reserved.
//

#import "NSUserDefaults+MyDefaults.h"

@implementation NSUserDefaults (MyDefaults)
+ (void) setObject:(id)object forKey:(id)key
{
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    if (object!=nil) {
        [defaults setObject:object forKey:key];
    }
}
+ (id) objectForKey:(id)key
{
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    return [defaults objectForKey:key];
}
@end
